package JavaSE.CODE.javase;

import java.util.*;

public class Intro {

//    0、psvm = public static void main(String[] args){}
    public static void main(String[] args){














        int a = 10;

        //1、自动导包、删包
        Map map = new HashMap();
        //2、if
        boolean flag = true;
        if (flag) {
            // flag.if
        }
        if (!flag) {
            // flag.else
        }
        //3 for
        for (int i = 0; i < 10; i++) {
            // fori
        }
        while (flag) {
            // flag.while
        }
        //4 new String.var
        String s = new String(); //shift f6
        System.out.println(s);
        //6 sout xxx.sout
        System.out.println("helloworld");

        //7异常 try(xx.try)
        try {
            int num = 10/0;
        } catch (Exception e) {
            e.printStackTrace();
        }

        //
        List<Integer> list = Arrays.asList(1, 2, 3, 4);



        // list.for :遍历
        for (Integer integer : list) {
            System.out.println(integer);
        }

        for (int i = 0; i < list.size(); i++) {
        // list.fori 从前往后遍历
        }

        for (int i = list.size() - 1; i >= 0; i--) {
        // list.forr 从后往前遍历
        }

        Iterator<Integer> iterator = list.iterator();
        // list.Iterator.var;
        while (iterator.hasNext()) {
            // iterator.hasNext.while
            System.out.println(iterator.hasNext());
        }
    }

    public int test(){
        return 10;
        //5 xx.return;
    }


}
